﻿using Common.Result;
using Model.Dto.Dish;
using Model.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService
{
    public interface IDishService
    {
        
        Task<bool> SaveWithFlavorAsync(DishAdd dishAdd,long id);

        Task<PageInfo> GetPageInfoAsync(int page, int pageSize, string? name);

        Task<DishDto> GetDishDtoByTdAsync(long id);
        Task<bool> DeleteDishByIdsAsync(List<long> ids);
        Task<bool> EditStatusByIdsAsync(List<long> ids, int status,long userId);
        Task<bool> EditDishByIdAsync(DishDto dishDto, long id);

        Task<List<DishDto>> GetDishesAsync(DishQuery dishQuery);
    }
}
